package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ruoyi.common.core.domain.entity.YhOrder;
import com.ruoyi.common.core.domain.entity.vo.YhOrderVo;
import com.ruoyi.system.domain.YhMemberWithdrawalRecords;
import com.ruoyi.system.domain.vo.YhMemberWithdrawalRecordsVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户提现记录Mapper接口
 * 
 * @author ruoyi
 * @date 2023-06-06
 */
public interface YhMemberWithdrawalRecordsMapper extends BaseMapper<YhMemberWithdrawalRecords>
{
    @Select("SELECT o.*, m.nick_name, m.face, m.mobile, m.member_level FROM yh_member_withdrawal_records o " +
            "LEFT JOIN yh_member m on o.member_id = m.id ${ew.customSqlSegment}")
    List<YhMemberWithdrawalRecordsVo> withdrawalRecordsList(@Param(Constants.WRAPPER) QueryWrapper<YhMemberWithdrawalRecords> queryWrapper);
}
